package br.com.cnpv.modelo.dao;

import java.util.List;

import org.hibernate.HibernateException;
import org.hibernate.Query;
import org.hibernate.Session;

import br.com.cnpv.modelo.acesso.idao.ICategoriaEventoDAO;
import br.com.cnpv.modelo.entity.CategoriaEvento;

public class CategoriaEventoDAO implements ICategoriaEventoDAO{

	@SuppressWarnings("unchecked")
	@Override
	public List<CategoriaEvento> listar(Session session)
			throws HibernateException {
		Query query = session.getNamedQuery("CategoriaEvento.listar");
		return query.list();
	}
}
